package code;

/**
 * @author Adit Ramadhan
 * @version 0.1
 */
public class Data {
    
    private static final String[] tingkatan = new String[] {"Playgroup", "TK", "SD", "SMP", "SMA"};
    private static final String[] jenisPembayaran = new String[] {"Uang Gedung", "SPP", "Infaq"};
    private static final String[] TK = new String[] {"A", "B"};
    private static final String[] SD = new String[] {"1", "2", "3", "4", "5", "6"};
    private static final String[] SMP = new String[] {"7", "8", "9"};
    private static final String[] SMA = new String[] {"10", "11", "12"};

    public static String[] getTingkatan() {
        return tingkatan;
    }

    public static String[] getJenisPembayaran() {
        return jenisPembayaran;
    }
    
    public static String[] getKelas(String tingkatan) {
        String[] kelas = new String[0];
        if (tingkatan.equals(Data.tingkatan[1])) {
            kelas = TK;
        } else if (tingkatan.equals(Data.tingkatan[2])) {
            kelas = SD;
        } else if (tingkatan.equals(Data.tingkatan[3])) {
            kelas = SMP;
        } else if (tingkatan.equals(Data.tingkatan[4])) {
            kelas = SMA;
        }
        return kelas;
    }
    
}
